#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main()
{
	int a,b;
	cin>>a>>b;
	if(a>b)cout<<"Bat";
	else cout<<"Glove";
    return 0;
}

